package org.tiangou.test;

import com.alibaba.fastjson.JSON;
import org.tiangou.entity.User;
import org.tiangou.utils.JwtUtil;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class MainTest03 {

    public static void main(String[] args) {
        // User user = new User("张三","123456","男",20) ;
        List<User> list = new ArrayList<>() ;
        User u1 = new User("张三","123456","男",20) ;
        User u2 = new User("李四","222222","女",30) ;
        User u3 = new User("五五","111111","男",40) ;
        list.add(u1);
        list.add(u2);
        list.add(u3);


        String json = JSON.toJSONString(list);

        System.out.println(json);
    }
}
